
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // toUpperCase()  转换大写
        var str = 'abcdefg';
        console.log(str.toUpperCase()); // ABCDEFG
        //toLowerCase()  转换小写
        var str1 = 'ABCDEFG';
        console.log(str1.toLowerCase()); // abcdefg
    </script>
</head>
<body>
    
</body>
</html>